home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / __MANDEL / MANDELBR / CMANDELI.C < prev    next >
Text File  |  1992-04-14  |  570b  |  29 lines

  1. //    CMandelImagePhase.c
  2.  
  3. #include <CDWApplication.h>
  4. #include "CMandelImagePhase.h"
  5.  
  6. extern CDWApplication *gApplication;
  7.  
  8. void
  9. CMandelImagePhase::IMandelImagePhase(CMandelDoc *theMandelDoc, CMandelPhase *theNextPhase)
  10. {
  11.     CMandelPhase::IMandelPhase(theMandelDoc, theNextPhase);
  12. }
  13.  
  14. CMandelPhase *
  15. CMandelImagePhase::Perform(void)
  16. {
  17.     CMandelPhase *aPhase;
  18.     itsDoc->DoImage();
  19.     if (! (aPhase = itsNextPhase))
  20.     {
  21.         itsDoc->itsPhase = NULL;
  22.         itsDoc->itsElapsedTicks = TickCount() - itsDoc->itsElapsedTicks;
  23.         
  24.         gApplication->NotifyUser();
  25.         Dispose();
  26.     }
  27.     
  28.     return aPhase;
  29. }